import request from '@/utils/request'

// 查询報價單明細列表
export function listQuoteItem(query) {
  return request({
    url: '/biz/quoteItem/list',
    method: 'get',
    params: query
  })
}

// 查询報價單明細详细
export function getQuoteItem(id) {
  return request({
    url: '/biz/quoteItem/' + id,
    method: 'get'
  })
}

// 新增報價單明細
export function addQuoteItem(data) {
  return request({
    url: '/biz/quoteItem',
    method: 'post',
    data: data
  })
}

// 修改報價單明細
export function updateQuoteItem(data) {
  return request({
    url: '/biz/quoteItem',
    method: 'put',
    data: data
  })
}

// 删除報價單明細
export function delQuoteItem(id) {
  return request({
    url: '/biz/quoteItem/' + id,
    method: 'delete'
  })
}
